package com.data;
import java.util.Arrays;

public class data {
    public static void main(String[] args) {

        String student[] = new String[6];
        String Student[]= new String[6];
        String s[];
        
        
        student[0]="张三";
        student[1]="李四";
        student[2]="王五";
        student[3]="陈六";
        student[4]="林七";
        student[5]="老八";

        System.arraycopy(student,0,Student,0,student.length);
        System.out.println("物联网专业所有的人有:"+ Arrays.toString(Student));
        s=Arrays.copyOfRange(student,0,3);
        System.out.println("物联网专业前三个人是"+Arrays.toString(s));



    }
}